package io.renren.modules.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.admin.dao.BrandActivityDao;
import io.renren.modules.admin.entity.BrandActivityEntity;
import io.renren.modules.admin.service.BrandActivityService;
import org.springframework.stereotype.Service;

import java.util.Map;




@Service("brandActivityService")
public class BrandActivityServiceImpl extends ServiceImpl<BrandActivityDao, BrandActivityEntity> implements BrandActivityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BrandActivityEntity> page = this.page(
                new Query<BrandActivityEntity>().getPage(params),
                new QueryWrapper<BrandActivityEntity>()
        );

        return new PageUtils(page);
    }

}